﻿using Adnc.Infra.Entities;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace WYT.Sys.Repository.Entities
{
    /// <summary>
    /// 心学院分组
    /// </summary>
    [Table("sys_EduGroup"), Comment("优惠券发放记录")]
    public class EduGroup : EfEntity
    {
        /// <summary>
        /// 分组名称
        /// </summary>
        [Comment("分组名称"),MaxLength(200)]
        public string GroupName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime CreateDate { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [Comment("创建时间")]
        public bool Deleted { get; set; } = false;

        /// <summary>
        /// 0：商学院；1：健康之道
        /// </summary>
        [Comment("0：商学院；1：健康之道")]
        public int Type { get; set; }

        /// <summary>
        /// 分组描述
        /// </summary>
        [Comment("0：商学院；1：健康之道")]
        public string Desc { get; set; }

        /// <summary>
        /// 封面图
        /// </summary>
        [Comment("封面图"), MaxLength(1000)]
        public string SurfacePlot { get; set; }

        /// <summary>
        /// 详情图
        /// </summary>
        [Comment("详情图(Json数组)")]
        public string Details { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [Comment("排序")]
        public int Sort { get; set; }
    }
}
